// reducer 函数
import { SET_CHANNELS } from '@/store/actionTypes'
const initState = []
export default function login(state = initState , action) {
    console.log('user', state, action)
    if(action.type === SET_CHANNELS) {
        return action.payload
    }
    return state
}